package com.aq.dao.imp;

import java.util.Map;

import org.hibernate.Query;

import com.aq.dao.MessageDao;
import com.hs.common.page.PageParam;
import com.hs.common.page.PageQuery;
import com.hs.common.page.PageUtil;
import com.hs.core.dao.BaseDao;

public class MessageDaoImpl extends BaseDao implements MessageDao{

	public PageUtil getMessageList(PageParam pageParam) {
		PageQuery pq = new PageQuery(pageParam);
		Query query = null;
		query = this.getSession().createQuery(pageParam.getSearchSql());
		Map map =pageParam.getConditionMap(); 
		PageUtil pu = pq.getPageUtil(query);
		return pu;
	}

}
